import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import login from '@/pages/login/login'
import home from '@/pages/home/home'
import firstPage from '@/pages/home/child/firstPage'
import train from '@/pages/home/child/train'
import consign from '@/pages/home/child/consign'
import recruit from '@/pages/home/child/recruit'
import recruitDetail from '@/pages/home/child/recruitDetail'
import consignDetail from '@/pages/home/child/consignDetail'
import recruitCheck from '@/pages/home/child/recruitCheck'
import consignCheck from '@/pages/home/child/consignCheck'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: login
    },
    {
      path:'/home',
      component:home,
      children:[
        {
          path:'/home/firstPage',
          component:firstPage
        },
        {
          path:'/home/train',
          component:train
        },
        {
          path:'/home/consign',
          component:consign
        },
        {
          path:'/home/recruit',
          component:recruit
        },
        {
          path:'/home/recruitDetail',
          component:recruitDetail
        },
        {
          path:'/home/consignDetail',
          component:consignDetail
        },
        {
          path:'/home/recruitCheck',
          component:recruitCheck
        },
        {
          path:'/home/consignCheck',
          component:consignCheck
        },
      ]
    }
  ]
})
